package com.fangs.kotlin_banner.banner

import android.content.Context
import android.widget.Scroller

class MyBannerScroller(context: Context?, duration: Int) :
    Scroller(context) {
    private var mDuration = 1000
    override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int) {
        super.startScroll(startX, startY, dx, dy, mDuration)
    }

    override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int) {
        super.startScroll(startX, startY, dx, dy, mDuration)
    }

    init {
        mDuration = duration
    }
}